﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class Screen:Prodect
    {
        /// <summary>
        /// 屏幕
        /// </summary>
        /// <param name="id">产品ID</param>
        /// <param name="name">产品名称</param>
        /// <param name="isOK">是否合格</param>
        /// <param name="deptid">流水线编号</param>
        public Screen(int id, string name, bool isOK, int deptid)
        {
            this.m_ID = id;
            this.m_name = name;
            this.m_IsOK = isOK;
            this.m_Deptid = deptid;
        }
        /// <summary>
        /// 显示所有的信息
        /// </summary>
        public override void showInfo()
        {
            Console.WriteLine(
                "编号:{0}\t名称:{1}\t检测结果:{2}\t产线:{3}",
                this.m_ID,
                this.m_name,
                this.m_IsOK,
                this.getDeptName());
        }
        /// <summary>
        /// 获取属性产线名称
        /// </summary>
        /// <returns>返回产线名称</returns>
        public override string getDeptName() { return "屏幕"; }
    }
}
